package com.baidumap.administrator.happystudy.model;

import com.ab.util.AbJsonUtil;

import java.util.List;

/**
 * 描述：
 * 作者：xiaoxing on 17/4/18 07:45
 * 邮箱：2235445233@qq.com
 */
public class OrderDetail {


    /**
     * code : 200
     * msg : success
     * data : {"id":"84","order_no":"XYL20170423164130603","user_id":"11","shop_id":"487","shop_name":"阿莱化妆店","order_amount":"620.00","goods_num":"3","message":"","status":"0","accept_name":"徐星咯哈","address":"吉林省 四平市 犁树  啦啦啦","mobile":"15965561796","pay_sn":"P201704231641301575","total":"672.00","create_time":"1492936890","payment":"online","delivery_time":"立即送出(大约16:56送达)","shipping_type":"商家配送","remark":null,"is_del":"0","warehouse_id":null,"status_text":"未支付","goods":[{"id":"78","order_id":"84","product_id":"2983","product_name":"保养霜","product_image":"http://yigoo.gxhao.cc/Uploads/2017-04-17/58f4009f642fd.jpg","price":"200.00","product_num":"3","sale_price":"200.00","state":null}]}
     */

    private String code;
    private String msg;
    private DataBean data;

    /**
     * 用json构造自己
     *
     * @param json
     */
    public OrderDetail(String json) {
        OrderDetail result = AbJsonUtil.fromJson(json, this.getClass());
        this.code = result.getCode();
        this.msg = result.getMsg();
        this.data = result.getData();

    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }


    public static class DataBean {
        /**
         * id : 84
         * order_no : XYL20170423164130603
         * user_id : 11
         * shop_id : 487
         * shop_name : 阿莱化妆店
         * order_amount : 620.00
         * goods_num : 3
         * message :
         * status : 0
         * accept_name : 徐星咯哈
         * address : 吉林省 四平市 犁树  啦啦啦
         * mobile : 15965561796
         * pay_sn : P201704231641301575
         * total : 672.00
         * create_time : 1492936890
         * payment : online
         * delivery_time : 立即送出(大约16:56送达)
         * shipping_type : 商家配送
         * remark : null
         * is_del : 0
         * warehouse_id : null
         * status_text : 未支付
         * goods : [{"id":"78","order_id":"84","product_id":"2983","product_name":"保养霜","product_image":"http://yigoo.gxhao.cc/Uploads/2017-04-17/58f4009f642fd.jpg","price":"200.00","product_num":"3","sale_price":"200.00","state":null}]
         */

        private String id;
        private String order_no;
        private String user_id;
        private String shop_id;
        private String shop_name;
        private String order_amount;
        private String goods_num;
        private String message;
        private String status;
        private String accept_name;
        private String address;
        private String mobile;
        private String pay_sn;
        private String total;
        private String create_time;
        private String payment;
        private String delivery_time;
        private String shipping_type;
        private Object remark;
        private String is_del;
        private Object warehouse_id;
        private String status_text;
        private List<GoodsBean> goods;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getOrder_no() {
            return order_no;
        }

        public void setOrder_no(String order_no) {
            this.order_no = order_no;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getShop_id() {
            return shop_id;
        }

        public void setShop_id(String shop_id) {
            this.shop_id = shop_id;
        }

        public String getShop_name() {
            return shop_name;
        }

        public void setShop_name(String shop_name) {
            this.shop_name = shop_name;
        }

        public String getOrder_amount() {
            return order_amount;
        }

        public void setOrder_amount(String order_amount) {
            this.order_amount = order_amount;
        }

        public String getGoods_num() {
            return goods_num;
        }

        public void setGoods_num(String goods_num) {
            this.goods_num = goods_num;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getAccept_name() {
            return accept_name;
        }

        public void setAccept_name(String accept_name) {
            this.accept_name = accept_name;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getPay_sn() {
            return pay_sn;
        }

        public void setPay_sn(String pay_sn) {
            this.pay_sn = pay_sn;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public String getCreate_time() {
            return create_time;
        }

        public void setCreate_time(String create_time) {
            this.create_time = create_time;
        }

        public String getPayment() {
            return payment;
        }

        public void setPayment(String payment) {
            this.payment = payment;
        }

        public String getDelivery_time() {
            return delivery_time;
        }

        public void setDelivery_time(String delivery_time) {
            this.delivery_time = delivery_time;
        }

        public String getShipping_type() {
            return shipping_type;
        }

        public void setShipping_type(String shipping_type) {
            this.shipping_type = shipping_type;
        }

        public Object getRemark() {
            return remark;
        }

        public void setRemark(Object remark) {
            this.remark = remark;
        }

        public String getIs_del() {
            return is_del;
        }

        public void setIs_del(String is_del) {
            this.is_del = is_del;
        }

        public Object getWarehouse_id() {
            return warehouse_id;
        }

        public void setWarehouse_id(Object warehouse_id) {
            this.warehouse_id = warehouse_id;
        }

        public String getStatus_text() {
            return status_text;
        }

        public void setStatus_text(String status_text) {
            this.status_text = status_text;
        }

        public List<GoodsBean> getGoods() {
            return goods;
        }

        public void setGoods(List<GoodsBean> goods) {
            this.goods = goods;
        }

        public static class GoodsBean {
            /**
             * id : 78
             * order_id : 84
             * product_id : 2983
             * product_name : 保养霜
             * product_image : http://yigoo.gxhao.cc/Uploads/2017-04-17/58f4009f642fd.jpg
             * price : 200.00
             * product_num : 3
             * sale_price : 200.00
             * state : null
             */

            private String id;
            private String order_id;
            private String product_id;
            private String product_name;
            private String product_image;
            private String price;
            private String product_num;
            private String sale_price;
            private Object state;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getOrder_id() {
                return order_id;
            }

            public void setOrder_id(String order_id) {
                this.order_id = order_id;
            }

            public String getProduct_id() {
                return product_id;
            }

            public void setProduct_id(String product_id) {
                this.product_id = product_id;
            }

            public String getProduct_name() {
                return product_name;
            }

            public void setProduct_name(String product_name) {
                this.product_name = product_name;
            }

            public String getProduct_image() {
                return product_image;
            }

            public void setProduct_image(String product_image) {
                this.product_image = product_image;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getProduct_num() {
                return product_num;
            }

            public void setProduct_num(String product_num) {
                this.product_num = product_num;
            }

            public String getSale_price() {
                return sale_price;
            }

            public void setSale_price(String sale_price) {
                this.sale_price = sale_price;
            }

            public Object getState() {
                return state;
            }

            public void setState(Object state) {
                this.state = state;
            }
        }
    }
}
